package com.funny.springcloud.alibaba.feign.fallback;

import com.funny.springcloud.alibaba.feign.PaymentFeignService;
import com.funny.springcloud.entities.Payment;
import com.funny.springcloud.utils.R;
import org.springframework.stereotype.Component;

/**
 * @author FUNNYWUS
 * @date 2020/7/29
 */
@Component
public class PaymentFeignServerFallback implements PaymentFeignService  {

    @Override
    public R<Payment> paymentSQL(Long id) {
        return new R<>(444, "服务降级返回, PaymentFeignServerFallback&paymentSQL()", new Payment(id, "error"));
    }
}
